package com.lh0811.forge.pserv.uacs.api.param;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * 开发平台-租户信息
 *
 * @author
 * @email
 * @date 2024-05-24 15:39:43
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class UacsPlateTenantInfoCreateParam implements Serializable {
    @NotBlank(message = "租户名称不能为空")
    @Schema(description = "租户名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String tenantName;

    @NotBlank(message = "联系人不能为空")
    @Schema(description = "联系人", requiredMode = Schema.RequiredMode.REQUIRED)
    private String contactsName;

    @Schema(description = "联系邮箱")
    private String contactsEmail;

    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "联系电话不正确")
    @NotBlank(message = "联系电话不能为空")
    @Schema(description = "联系电话", requiredMode = Schema.RequiredMode.REQUIRED)
    private String contactsPhone;

    @Schema(description = "是否可用")
    private Boolean activeFlag = Boolean.TRUE;

    @Schema(description = "备注")
    private String notes;
}
